import request from '@/utils/request'

// 查询老年养生列表
export function listPicture(query) {
    return request({
        url: '/yanglao/picture/list',
        method: 'get',
        params: query
    })
}

// 查询老年养生详细
export function getPicture(id) {
    return request({
        url: '/yanglao/picture/' + id,
        method: 'get'
    })
}

// 新增老年养生
export function addPicture(data) {
    return request({
        url: '/yanglao/picture',
        method: 'post',
        data: data
    })
}

// 修改老年养生
export function updatePicture(data) {
    return request({
        url: '/yanglao/picture',
        method: 'put',
        data: data
    })
}

// 删除老年养生
export function delPicture(id) {
    return request({
        url: '/yanglao/picture/' + id,
        method: 'delete'
    })
}
